import request from "@/utils/request";
import { useStore } from "vuex";
// 创建菜单
export const createdMenu = async (data = {}) => {
    return await request.post("/sxnf_rbac/menu", data).then((res) => {
        return res;
    });
};
// 修改菜单
export const putMenu = async (data = {}) => {
    return await request.put("/sxnf_rbac/menu", data).then((res) => {
        return res;
    });
};
// 获取菜单列表
export const getMenu = async (data = {}) => {
    return await request.get("/sxnf_rbac/menu/route", data).then((res) => {
        return res;
    });
};
// 删除菜单列表
export const deleteMenu = async (id: number | string) => {
    return await request.delete(`/sxnf_rbac/menu?menuId=${id}&sysType=0`).then((res) => {
        return res;
    });
};
// // 获取个人认证审核列表
// export const getPersonalCertificate = async (data = {}) => {
//     return await request.get("/sxnf_user/user/get_page_by_certified", data).then((res) => {
//         return res;
//     });
// };
// // 审核通过
// export const passTheAudits = async (data = {}) => {
//     return await request.put("/sxnf_user/user/certified_agree", data).then((res) => {
//         return res;
//     });
// };
// // 审核不通过
// export const failTheAudits = async (data = {}) => {
//     return await request.put("/sxnf_user/user/certified_disagree", data).then((res) => {
//         return res;
//     });
// };
